Skip to content
  • 0 Votes
    6 Posts
    1k Views
    S

    Understood. Thanks for your responses @artwaw and @JonB .

  • 0 Votes
    3 Posts
    353 Views
    S

    Thanks for the reply @SGaist . This helps

  • 0 Votes
    4 Posts
    488 Views
    F

    An update on this from my side:

    My initial approach wasn't flawless, as @VRonin pointed out, because QAbstractItemModel::columnCount didn't return the appropriate values. I've fixed this, by not immediately passing the new count after inserting the elements to a list, of which the size was used, but instead have the model save exactly how many categories it currently accounts for, so the connection looks like this:

    connect(item_registry.get(), &item_registry::category_added, [this](int position, QSharedPointer<category>) { beginInsertColumns(QModelIndex{}, position, position); _current_category_count++; endInsertColumns(); });

    and likewise columnCount:

    int item_model::columnCount(QModelIndex const&) const { if(!_register) { qCritical() << "Item-model didn't have a register"; return 0; } return 1 /* name */ + _current_category_count; }
  • 0 Votes
    5 Posts
    2k Views
    JKSHJ

    @tansgumus said in javascript documentation:

    Is there any plan to cover JavaScript docs by Qt?

    Currently not.

    As I mentioned, the Qt Project has no control over the JavaScript API, so it will not document the JavaScript API either. However, QML classes and methods are fully documented -- if you find something missing, please file a bug report.

  • 0 Votes
    6 Posts
    11k Views
    Q

    Thanks

    I tried your example on how to send sms. Unfortunately the application crash when mySmsManager.callMethod<void>("sendTextMessage",.... is executed. Builds correctly.

    But i think i have a problem with Qt 5.6 with Qt Extras not installed. Will go back to Qt 5.1.1 and test. Did test in Qt 5.5.1 Same crash problem. Probably some installation or package i need?

    The only includes i added was
    #include <QDebug>
    #include <QtAndroidExtras/QAndroidJniObject> // For JNI, need to select Android Build
    #include <QAndroidJniObject>

    and added the QT extras in the Pro file

    You don't perhaps have some clue or example on how to read the Android SMS inbox, and how to receive incomming sms on the fly?

    Thanks